home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / A-line / Scripts / SetProject < prev    next >
Encoding:
Text File  |  2000-06-24  |  460 b   |  26 lines

  1. # SetProject
  2. #
  3. # Synopsis:
  4. #    SetProject <target>
  5.  
  6.  
  7. # Make sure we have what to build
  8. If {#} < 1
  9.     # We can change this later.  Maybe add a dialog box to pick one.
  10.     Echo "{0}: You must specify a target project." ≥≥ Dev:StdErr
  11.     Exit 1
  12. End
  13.  
  14. Set TARG "{Boot}Development:Menu:{1}:"
  15.  
  16. # Make sure the project directory exists.
  17. If "`Exists -d "{TARG}"`" == ""
  18.     Echo "{0}: Project '{TARG}' does not exist." ≥≥ Dev:StdErr
  19.     Exit 1
  20. End
  21.  
  22. Directory "{TARG}"
  23.  
  24. Exit
  25. # The end.
  26.